<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>

</h:head>

<h:body>

			

	<h:form>
		<h:dataTable value="#{usuarioManagedBean.usuarios}" var="item" border="1"
			style="font: 14px Arial;">>
			<h:column>
				<f:facet name="header">
					<h:outputText value="Nome" />
				</f:facet>
				<h:outputText value="#{item.nome}" />
			</h:column>

			<h:column>
				<f:facet name="header">
					<h:outputText value="Login" />
				</f:facet>
				<h:outputText value="#{item.login}" />
			</h:column>

			<h:column>
				<f:facet name="header">
					<h:outputText value="email" />
				</f:facet>
				<h:outputText value="#{item.email}" />
			</h:column>
			<h:column>
				<f:facet name="header">
					<h:outputText value="Ação" />
				</f:facet>

				<h:commandLink actionListener="#{usuarioManagedBean.excluir}"
					value="Excluir">
					<f:attribute name="usuario" value="#{item}" />
				</h:commandLink>
				<h:commandLink action="cadastroUsuario" value="Alterar">
					<f:setPropertyActionListener value="#{item}"
						target="#{usuarioManagedBean.usuario}" />
				</h:commandLink>
			</h:column>
		</h:dataTable>
	</h:form>

</h:body>

</html>